package other.binarysystem;

public class MainTest1 {

    public static void main(String[] args) {

        int a = 0b1000;     //二进制
        int b = 011;      //八进制
        int c = 11;       //十进制
        int d = 0x11;     //十六进制
        int e = a >>1;
        int f = a <<1;
        int g = c <<1;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(Integer.toBinaryString(e));
        System.out.println(Integer.toBinaryString(f));
        byte[] bytes = new Integer(c).toString().getBytes();
        System.out.println(bytes);
        System.out.println(g);
    }
}
